[1] "Hello quarto"
Workshop at the UZH Reproducibility Day 2023
Center for Reproducible Science (CRS)
What is dynamic reporting?
How to do dynamic reporting?
Hands-on exercises
| Main programming language | Main markup language | Main output format | |
|---|---|---|---|
knitr (.Rnw) |
R | LaTeX | |
R Markdown (.Rmd) |
R | Markdown | html, pdf, docx |
Quarto (.qmd) |
R, Python, Julia | Markdown | html, pdf, docx |
knitr → R+LaTeX users (intermediate to advanced)R Markdown → R users (beginner to advanced)Quarto → R/Python/Julia users (beginner to advanced)
Dynamic Reporting & Reproducibility in Research
→ transdisciplinary course at UZH
Dynamic Reporting Primer
→ Primer article from the CRS
R Markdown tutorial
→ good tutorial series from R Studio
R Markdown: The Definitive Guide
→ freely available book
knitr website
→ very comprehensive website from the knitr author
Quarto tutorial
→ good tutorial series from R Studio
Download the data sets on traffic accidents in Zurich from https://github.crsuzh/dynamicReporting/workshop/.
Explore the data from the 2020 (file accidents_2020.csv) . Compute the number of accidents for each weekday and month. Make plots of the number of accidents vs. weekday, and the number of accidents vs. month. Create an HTML report using either R Markdown or Quarto.
Now use the data from 2020 and 2021 (file accidents_2021.csv) and create an updated report.
Bonus: Convert your report to a presentation.
R programming language
(> 60 other also possible)
.Rmd files (edit in RStudio, VS Code, etc.)
Markup language: Markdown
HTML, PDF, DOCX output formats (and more)
rmarkdown is an R package
Programming language: R
(> 60 other also possible)
.Rnw files (edit in RStudio, VS Code, etc.)
Markup languages: LaTeX
(+ HTML, Markdown, and more)
PDF output format (and more)
knitr is an R package
Programming language: R, Python, Julia
.qmd files (edit in RStudio, VS Code, etc.)
Markup language: Markdown
HTML, PDF, DOCX output formats (and more)
Evolution of R Markdown (introduced in 2022)
quarto is a separate program